package com.bing.java.thread.exception;

/**
 * 
 * @author bing
 *
 * 2019年11月9日 上午9:53:17
 * InterruptedException
 * interrupt
 * 测试
 */
public class InterruptExample {

	public static class MyThread1 extends Thread{
		@Override
		public void run() {
			try {
				Thread.sleep(3000);
				System.out.println("Thread run");
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
		}
	}
	
	public static void main(String[] args) {
		MyThread1 thread = new MyThread1();
		thread.start();
		thread.interrupt();
		System.out.println("Mian run");
	}
}
